package com.example.fmgidsprototype.model;

import java.io.Serializable;
import java.util.Date;

public class Review implements Serializable{
	
	private long id;
	private long venueId;
	private String comment;
	private long timeStamp;
	private String userName;
	
	public Review(long venueId, String comment, long timeStamp, String userName){
		this.venueId = venueId;
		this.comment = comment;
		this.timeStamp = timeStamp;
		this.userName = userName;
	}
	
	public Review(){
		
	}
	
	public void setVenueId(long venueId){
		this.venueId = venueId;
	}
	
	public long getVenueId(){
		return this.venueId;
	}
	
	public void setId(long id){
		this.id = id;
	}
	
	public long getId(){
		return this.id;
	}
	
	public void setComment(String comment){
		this.comment = comment;
	}
	
	public String getComment(){
		return this.comment;
	}
	
	public void setTimeStamp(long timeStamp){
		this.timeStamp = timeStamp;
	}
	
	public long getTimestamp(){
		return this.timeStamp;
	}
	
	public Date getDate(){
		if(timeStamp != -1){
			return new Date(timeStamp);
		}
		return null;
	}
	
	public void setUserName(String userName){
		this.userName = userName;
	}
	
	public String getUserName(){
		return this.userName;
	}

}
